﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.ServiceModel.Activation;
using Microsoft.SharePoint;

namespace SJKP.PDFConversion.Service
{
    public class OCRServiceHostFactory : ServiceHostFactory
    {
        public override System.ServiceModel.ServiceHostBase CreateServiceHost(string constructorString, Uri[] baseAddresses)
        {
            ServiceHostBase host = base.CreateServiceHost(constructorString, baseAddresses);
            SPServiceHostOperations.Configure(host, SPServiceAuthenticationMode.Claims);

            return host;
        }
    }
}
